//
//  LNNavigationProtocol.h
//  LNDevelopExample
//
//  Created by wwww on 2018/9/5.
//  Copyright © 2018年 淘发现1iOS. All rights reserved.
// 关于导航栏跳转（Push/Pop   Present/Dismiss）的协议
#import <Foundation/Foundation.h>
#import "LNViewModel.h"

@protocol LNNavigationProtocol <NSObject>

/// 跳转相关页面
- (void)pushViewModel:(LNViewModel *)viewModel animated:(BOOL)animated;

// 返回上一层页面
- (void)popViewModelAnimated:(BOOL)animated;

// 返回根页面
- (void)popToRootViewModelAnimated:(BOOL)animated;

// 模态弹出页面
- (void)presentViewModel:(LNViewModel *)viewModel animated:(BOOL)animated completion:(VoidBlock)completion;

// 销毁模态页面
- (void)dismissViewModelAnimated:(BOOL)animated completion:(VoidBlock)completion;

//重置根页面
- (void)resetRootViewModel:(LNViewModel *)viewModel;
@end
